<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-04 15:22:10
 * @LastEditTime: 2023-09-02 12:21:26
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 兼容老接口数据
 */

namespace App\Http\Controllers\OldController;

use App\Http\Services\Comprehensive\EmployeeService;
use App\Http\Services\Pro\PotService;
use App\Http\Services\Pro\ProcessesService;
use App\Http\Services\Storage\ProYarnService;
use App\Http\Services\System\BarcodeService;
use Illuminate\Http\Request;
use Laravel\Lumen\Routing\Controller as BaseController;

/**
 * 老系统兼容接口
 * @property ProYarnService $pro_yarn
 * @property PotService $pot
 * @property ProcessesService $process
 * @property EmployeeService $employee
 * @property BarcodeService $barcode
 * @author sunkaiyuan
 */
class QtybBarController extends BaseController
    {

    public function __construct(
        ProYarnService $pro_yarn,
        PotService $pot,
        ProcessesService $process,
        EmployeeService $employee,
        BarcodeService $barcode
    )
        {
        $this->pro_yarn = $pro_yarn;
        $this->pot      = $pot;
        $this->process  = $process;
        $this->employee = $employee;
        $this->barcode  = $barcode;
        }

    public function init(Request $request)
        {
        return $request->barcode;
        }
    }